import { createPinia } from 'pinia';
// import { createPersistPlugin } from './persist';
// import { createStorageName } from '@/utils/src/storage';
import piniaPluginPersist from 'pinia-plugin-persist';

const pinia = createPinia();

// pinia.use(
//   createPersistPlugin({
//     namespace: createStorageName(),
//   }),
// );

pinia.use(piniaPluginPersist);

export { pinia };
